class Invoice < ActiveRecord::Base
	has_many :invoice_details
	has_many :invoice_item_types, through: :invoice_details
	has_many :payments
	
	validates :code, presence: true
end
